/**
 * Created by dell2 on 2016/9/19.
 * function util
 */

exports.httpBadEnd = function (response,exception,logger,messag){
    logger.error( messag +",Exception=\n"+JSON.stringify( exception ) ) ;
    response.status( 400 );
    response.send( exception );
};
exports.httpHappyEnd = function(response,data,logger,message){
    logger.debug(message+",Result=\n"+JSON.stringify( data ) ) ;
    response.status( 200 );
    response.send( data );
}
